package com.qdxwx.data.mapper.colleges;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.colleges.Colleges;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface CollegesMapper {

    int insertColleges(Colleges colleges);

    Colleges selectById(int id);

    List<Colleges> selectList(@Param("e") Colleges colleges, @Param("page") PageRequest page);

    Integer selectCount(@Param("e") Colleges colleges);

    int updateColleges(Colleges colleges);

    int deleteById(int id);

    //浏览数 +1
    int updateView(int id);

    //点赞数 +1
    int updateLike(int id);

}
